package com.fjec.market.mapper;

import com.fjec.market.entity.InfoYsepayRegister;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 052.银盛支付注册表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2020-10-30
 */
public interface InfoYsepayRegisterMapper extends BaseMapper<InfoYsepayRegister> {

    /**
     * 获取过期未处理的进件
     *
     * @param limit
     * @param minutes
     * @return
     */
    List<Long> getEntityForReg(@Param("limit") int limit,
                               @Param("minutes") int minutes);

    List<InfoYsepayRegister> getRegisteringNoResult(@Param("limit") int limit, @Param("minutes") Integer minutes);

    /**
     * 获取一天的已经完成线上注册的信息
     *
     * @param startTime
     * @param endTime
     * @return
     */
    List<InfoYsepayRegister> getOffLineRegList(@Param("startTime") LocalDateTime startTime,
                                               @Param("endTime") LocalDateTime endTime);

    /**
     * 查询指定RegStatus的列表数据
     *
     * @return
     */
    List<InfoYsepayRegister> getEntityByRegStatus(@Param("regStatus") Integer regStatus,
                                                  @Param("limit") int limit,
                                                  @Param("minutes") int minutes);

    String getUserCodeByBusiId(Long busiId);
}
